package com.yonyougov.devops.cruxcisupport.deployhistory;

import com.yonyougov.devops.cruxcisupport.deployhistory.dto.DeployHisPageLikeDto;
import com.yonyougov.devops.cruxcisupport.deployhistory.vo.DeployHisPageLikeVo;
import com.yonyougov.devops.fwc.core.entity.Pagination;
import com.yonyougov.devops.fwc.core.service.BaseService;

import java.math.BigInteger;
import java.util.List;

/**
 * t_deploy_his服务
 */
public interface DeployHisService extends BaseService<DeployHisEntity, BigInteger> {

    //<!--用户自定义代码开始-->

    /**
     * 部署历史表id生成
     *
     * @return [java.math.BigInteger]
     */
    BigInteger idGenerat();

    /**
     * 新增部署历史
     * 类型: 批量
     *
     * @param deployHisEntityList [java.util.List: com.yonyougov.devops.cruxcisupport.deployhistory.DeployHisEntity]
     */
    void batchAddDeployHistory(List<DeployHisEntity> deployHisEntityList);

    /**
     * 查询部署历史
     * 条件: 环境id, 环境名称, 应用id, 应用名称
     *
     * @param deployHisPageLikeDto [com.yonyougov.devops.cruxcisupport.deployhistory.dto.DeployHisPageLikeDto]
     * @return [com.yonyougov.devops.fwc.core.entity.Pagination]
     */
    Pagination<DeployHisPageLikeVo> findDeployHisPageLike(DeployHisPageLikeDto deployHisPageLikeDto);
    //<!--用户自定义代码结束-->
}
